@import "./theme.scss";
body,html{
    position: relative;
    height: 100%;
    width: 100%;
}
#schedule{
    width: 100%;
    min-width: 700px;
    height: 100%;
    min-height: 380px;
    background: #FFFFFF;
    // box-shadow: 0px 2px 9px 0px rgba(0, 73, 128, 0.2);
    border-radius: 6px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    box-sizing: border-box;
    border: 1px solid #E8EAEA;
}
#scheduleHeader{
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: start;
    align-items: center;
    border-bottom: 1px solid #E8EAEA;
    position: relative;
    li{
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #1F1F1F;
        line-height: 40px;
        margin-left: 40px;
        margin-top: 5px;
        cursor: pointer;
    }
    li:nth-of-type(1){
        margin-left: 31px;
    }
    li.sel,li:hover{
        // color: #0091FF;
        @include font-color-theme();
    }
    #selectBlock{
        width: 70px;
        height: 2px;
        // background: #0091FF;
        @include background-color-theme();
        border-radius: 2px;
        position: absolute;
        bottom: 0;
        left: 24px;
        transition: all 0.5s ease-in-out;
    }
}
.contentData{
    position: absolute;
    left: 0;
    top: 56px;
    // height: 494px;
    height: calc(100% - 57px);
    width: 100%;
}
#weekSchedule{
    z-index: 100;
    .topCon{
        display: flex;
        justify-content: start;
        padding-top: 15px;
        height: calc(100% - 156px);
        .timeList{
            width: 55px;
            text-align: right;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            margin-right: 10px;
            height: 100%;
            li{
                font-size: 12px;
                font-family: Arial;
                font-weight: 400;
                color: #848484;
            }
        }
        .thing{
            display: inline-block;
            overflow: hidden;
            width: 100%;
            text-overflow:ellipsis;
            white-space: nowrap;
        }
    }
    .bottomCon{
        ul{
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 300;
            color: #848484;
            line-height: 40px;
            padding-left: 65px;
            padding-right: 21px;
            li{
                width: 13.2857%;
                text-align: center;
                font-size: 12px;
            }
            // li{
            //     margin-left: 66px;
            // }
            // .firstLi{
            //     margin-left: 90px;
            // }
        }
    }
    
}
// 时间选择
.controlCon{
    padding-top: 15px;
    border-top: 1px solid #E8EAEA;
    ul,li{
        display: flex;
        justify-content: start;
        align-items: center;
    }
    .timeP{
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #666666;
        margin-left: 29px;
    }
    .startHour,.endHour{
        margin-left: 9px;
    }
    .startMinute,.endMinute{
        margin-left: 2px;
    }
    .endTimeP{
        margin-left: 39px;
    }
    li{
        select{
            outline: none;
            width: 70px;
            height: 26px;
            border: 1px solid #D6D6D6;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 400;
            color: #848484;
            text-align: center;
            cursor: pointer;
            background: none;
        }
        select:hover{
            border-color: #B4B4B4;
        }
    }
    .tingUl{
        margin-top: 10px;
        position: relative;
        
    }
    .selectOrInput{
        position: relative;
        .spanUnit{
            position: absolute;
            right: 6px;
            font-size: 12px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #666666;
            margin-left: 5px;
        }
    }
    .tingOut{
        width: 142px;
        margin-left: 9px;
    }
    .inputThing{
        width: 136px!important;
        height: 26px;
        margin-left: 9px;
        outline: none;
        border: 1px solid #D6D6D6;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 400;
        color: #848484;
    }
    .inputThing:hover{
        border-color: #B4B4B4;
    }
    .isEmpty{
        margin: 0;
        margin-left: 41px;
        margin-right: 6px;
    }
    label{
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #666666;
    }
    li.buttonLi{
        // margin-left: 50px;
        position: absolute;
        right: 20px;
        top: -2px;
    }
    .button{
        box-sizing: border-box;
        width: 32px;
        height: 26px;
        border: 1px solid #0091FF;
        border-radius: 4px;
        color: #0091FF;
        text-align: center;
        cursor: pointer;
        span{
            font-size: 18px;
            line-height: 20px;
            font-weight: 400;
        }
    }
    .button:hover{
        color: #1163de;
        border-color:#1163de;
    }
    #saveButton{
        margin-right: 10px;
    }
    .button:hover{
        @include font-hover-theme();

    }
}

// 右键的菜单
#divmenu{
    display: none;
    position: absolute;
    z-index: 100;
    width: 126px;
    height: 195px;
    background: #FFFFFF;
    box-shadow: 0px 2px 9px 0px rgba(0, 73, 128, 0.4);
    border-radius: 4px;  
    box-sizing: border-box;
    padding-top: 5px;
    li{
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #656565;
        line-height: 24px;
        padding-left: 11px;
        box-sizing: border-box;
        cursor: pointer;
    }  
    li:hover{
        background-color: #EEE;
    }
    .disabledPaste{
        color: #C0C0C0;
        cursor: no-drop;
    }
    .disabledPaste:hover{
        background: none;
    }
    .line{
        display: block;
        width: 120px;
        height: 1px;
        // border: 1px solid #D6D6D6;
        background-color: #D6D6D6;
        margin: 3px 0;
        margin-left: 3px;
    }
}

// 特殊日程
#specialSchedule{
    .tingOut{
        width: 90px;
    }
    .topDiv{
        height: calc(100% - 42px);
        display: flex;
        justify-content: center;
    }
    .bottomDiv{
        border-top: 1px solid #E8EAEA;
        height: 41px;
        display: flex;
        justify-content: center;
        align-items: center;
        .saveSpiceButton,.reloadSpiceButton{
            width: 30px;
            height: 24px;
            border: 1px solid #0091FF;
            border-radius: 4px;
            color: #0091FF;
            cursor: pointer;
            text-align: center;
            span{
                font-size: 18px;
                line-height: 24px;
            }
        }
        .saveSpiceButton{
            margin-right: 10px;
        }
        div:hover{
            color: #1163de;
            border-color: #1163de;
        }
    }
    .thing{
        display: inline-block;
        overflow: hidden;
        width: 100%;
        text-overflow:ellipsis;
        white-space: nowrap;
    }
}


// 左侧
#specialLeft{
    width: 217px;
    height: 100%;

    .dateContent{
        width: 217px;
        border-radius: 2px;
        box-shadow: 0px 1px 1px 0px rgba(0, 73, 128, 0.2);
        li{
            width: 100%;
            display: flex;
            justify-content: space-between;
            p{
                width: 25px;
                height: 25px;
                line-height: 25px;
                text-align: center;
                border-radius: 50%;
                font-size: 12px;
                font-family: Arial;
                font-weight: 400;
                color: #666666;
                border: 1px solid transparent;
                cursor: pointer;
                // box-sizing: border-box;
            }
            .date:hover{
                @include border-color-selected-hover();
            }
            .selectedDate{
                span{
                    background-color: #00BC3A;
                    color: #FFFFFF;
                    border-radius: 50%;
                    padding: 3px;
                }
            }
            .today{
                // border-color: #0091FF;
                @include border-color-selected();
            }

            .showDate{
                font-size: 12px;
                font-family: PingFang SC;
                font-weight: bold;
                color: #333333;
                cursor: pointer;
            }
        }
        .dateHeard{
            height: 40px;
            align-items: center;
            box-sizing: border-box;
            padding: 0 10px;
            position: relative;
            .jumpToday{
                width: 20px;
                height: 20px;
                border: 1px solid #C6C6C6;
                border-radius: 10px;
                text-align: center;
                line-height: 20px;
                font-size: 11px;
                font-family: PingFang SC;
                font-weight: 400;
                color: #404040;
                position: absolute;
                left: 41px;
                top: 11px;
            }
            .jumpToday:hover,.iconfont:hover{
                // border-color: #0091FF;
                @include border-color-theme();
                // color: #0091FF;
                @include font-color-theme();
                cursor: pointer;
            }
            .iconfont{
                font-size: 22px; 
            }
        }
        .weekList {
            p{
                font-family: PingFang SC;
                font-weight: bold;
            }
        }
    }
    #addButton{
        margin-top: 11px;
        width: 211px;
        height: 26px;
        // background: #0091FF;
        @include background-color-theme();
        border-radius: 3px;
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #FFFFFF;
        text-align: center;
        line-height: 26px;
        cursor: pointer;
        margin-left: 3px;
    }
    #addButton:hover{
        @include background-color-hover-theme();

    }
}
// 中间
#specialCenter{
    // background-color: rebeccapurple;
    margin: 0 7px;
    flex: 1;
    box-shadow: 0px 1px 2px 0px rgba(0, 73, 128, 0.2);
    .specialList{
        height: calc(100% - 40px);
        dt{
            padding-left: 20px;
            padding-top: 13px;
            box-sizing: border-box;
            font-size: 12px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #666666;
        }
        &>div{
            height: calc(100% - 35px);
            overflow-y:auto ;
            margin-top: 10px;
        }
        dd{
            width: 90%;
            margin: 0px auto 10px;
            cursor: pointer;
            div{
                padding-top: 9px;
                display: flex;
                justify-content: start;
                align-items: center;

                span{
                    flex: 1;
                    font-size: 12px;
                    font-family: PingFang SC;
                    font-weight: 400;
                    color: #000000;
                }
                .ball{
                    flex: inherit;
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background: #00BC3A;
                    margin-left: 11px;
                    margin-right: 8px;
                }
            }
            p{
                padding-left: 27px;
                font-size: 12px;
                font-family: PingFang SC;
                font-weight: 400;
                color: #666666; 
                margin-top: 8px;
                padding-bottom: 7px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                width: 260px;
                display:block;
            }
        }
        dd:hover{
            background: rgba( 0, 188, 58, 0.05);
        }
        dd.selected{
            background: rgba( 0, 188, 58, 0.1);
        }
        
    }
    #operation{
        height: 40px;
        text-align: center;
        span{
            font-size: 20px;
            line-height: 40px;
            padding: 0 5px;
            // color: #0091FF;
            @include font-color-theme();
            cursor: pointer;
        }
        span:hover{
            @include font-color-hover-theme();
        }
        .disabled{
            // color: #848484;
            cursor: not-allowed;
            @include font-color-disabled-theme();
        }
        .disabled:hover{
            @include font-color-disabled-theme();

        }
        .toTop,.toBottom{
            font-size: 22px;
        }
        .toReanme{
            font-size: 16px;
        }
    }
}
#specialRight{
    width: 222px;
    // background-color: #666666;
    display: flex;
    flex-direction: column;
    justify-content: start;
    .topRight{
        display: flex;
        justify-content: start;
        flex: 1;
        .otherRoot{
            width: calc(100% - 45px);
        }
        .timeList{
            width: 44px;
        }
        .timeList{
            font-size: 11px;
            font-family: Arial;
            font-weight: 400;
            color: #848484;
            line-height: 11px;
        }
    }
    .bottomRight{
        height: 95px;
        overflow: hidden;
        .timeP{
            margin-left: 0;
        }
        .timeUl{
            display: flex;
            flex-direction: column;
            justify-content: start;
            li{
                width: 100%;
            }
        }
        .controlCon{
            padding-top: 0px;
            border-top: none;
            margin-top: 10px;
            .inputThing{
                width: 100px!important;
                height: 24px;
            }
            .isEmpty{
                margin-left: 5px;
            }
        }
    }
    .timeList{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .tingUl{
        margin-top: 2px;
    }
    .block:before{
        display: none;
    }
    
}
#scheduleRootOther{
    .root7{
        &>div{
            border-left: none!important;
            border-right: none!important;
        }
    }
}
// 新建日程时间
.blockDate{
    position: absolute;
    z-index: 101;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    // opacity: 0;
}
.dateSelectDiv{
    position: absolute;
    z-index: 100;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 480px;
    height: 220px;
    background: #FFFFFF;
    box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    box-sizing: border-box;
    
    .closeButton{
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #999999;
        position: relative;
        span{
            position: absolute;
            right: 18px;
            top: 16px;
            cursor: pointer;
        }
        span.dataTitle{
            position: absolute;
            left: 18px;
            top: 16px;
            color: #111;
            font-size: 14px;
        }
        span.hide{
            display: none;
        }
    }
    ul{
        padding-top: 31px;
        
        li{
            display: flex;
            justify-content: start;
            align-items: center;
            margin-bottom: 11px;
            p{
                width: 123px;
                text-align: right;
                font-size: 14px;
                font-family: PingFang SC;
                font-weight: 400;
                color: #666666;
            }
            input,select{
                outline: none;
                width: 273px;
                height: 33px;
                border: 1px solid #E5E5E5;
                border-radius: 4px;
                background: none;
                box-sizing: border-box;
                margin-left: 20px;
                color: #848484;
                font-size: 14px;
            }
            input:focus,select:focus{
                @include border-color-selected();
                border-width: 1px;
                box-shadow: none;
            }
        }
        .dataRang{
            display: none;
            div{
                display: flex;
                justify-content: start;
                align-items: center;
            }
            p{
                // width: 100%;
                padding: 10px 0;
                margin-left: 241px;
                text-align: left;
                // text-align: center;
            }
        }
        .dataOne,.dataRang{
            select{
                width: 78px;
                height: 33px;
                border: 1px solid #D6D6D6;
                border-radius: 4px;
                background: none;
                margin-right: 20px;
                margin-left: 0;
                color: #848484;
            }
            .dateOneYear{
                margin-left: 44px;
            }
        }
        .dataRang{
            .dateOneYear{
                margin-left: 142px;
            }
        }
        .reference{
            display: none;
            select{
                margin-left: 143px;
            }
        }
    }
    .foot{
        display: flex;
        justify-content: flex-end;
        margin-top: 26px;
        .buttonDiv{
            width: 74px;
            height: 24px;
            background: #9F9F9F;
            border-radius: 3px;
            font-size: 14px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #FFFFFF;
            line-height: 24px;
            text-align: center;
            margin-right: 16px;
            cursor: pointer;
        }
        .cancelButton{
            box-sizing: border-box;
            background: none;
            color: #606266;
            border: 1px solid #9F9F9F;
        }
        .cancelButton:hover{
            border-color: #2679f4;
            color: #2679f4;
        }
        .confirmButton,.setButton,.deleteButton,.renameButton{
            // background: #0091FF;
            @include background-color-theme();
            margin-right: 23px;
        }
        .confirmButton:hover,.setButton:hover,.deleteButton:hover,.renameButton:hover{
            @include background-color-hover-theme();
        }
    }
}
.setDate{
    background: none;
    .dateSelectDiv{
        height: 140px!important;
        width: 300px;
        left: 1px;
        right: auto;
        top: 97px;
        bottom: auto;
        
    }
}
.deleteDate{
    .deleteCon{
        margin-top: 65px;
        text-align: center;
    }
    .foot{
        margin-top: 60px;
    }
}
.renameDate{
    ul{
        padding-top: 80px;
    }
    .foot{
        margin-top: 60px;
    }
}
.coloseX{
    font-size: 12px!important;
}
.coloseX:hover{
    color: #0091FF;
}
// 日程总览
#overviewSchedule{
    .topDiv{
        height: calc(100% - 42px);
        display: flex;
        justify-content: center;
    }
    .bottomDiv{
        border-top: 1px solid #E8EAEA;
        height: 41px;
        display: flex;
        justify-content: center;
        align-items: center;
        .saveSpiceButton,.reloadSpiceButton{
            width: 30px;
            height: 24px;
            border: 1px solid #0091FF;
            border-radius: 4px;
            color: #0091FF;
            cursor: pointer;
            text-align: center;
            span{
                font-size: 18px;
                line-height: 24px;
            }
        }
        .saveSpiceButton{
            margin-right: 10px;
        }
        div:hover{
            color: #1163de;
            border-color: #1163de;
        }
    }
    .specialList{
        
        dd{
            margin-bottom: 24px;
        }
        ul{
            display: flex;
            justify-content: start;
            align-items: center;
            li{
                font-size: 12px;
                font-family: PingFang SC;
                font-weight: 400;
                color: #666666;
            }
            .time{
                margin-left: 16px;
                display: flex;
                justify-content: start;
                align-items: center;
                
            }
            .eventText{
                margin-left: 24px;
                align-items: flex-start;
                .timeText{
                    margin-top: 2px;
                }
                .timeCont{
                    margin-top: 1px;
                    line-height: 1.3;
                }
            }
            .timeText{
                margin-left: 7px;
            }
            .timeCont{
                margin-left: 18px;
                flex: 1;
            }
            .type{
                margin-left: 54px;
            }
        }
        .ptop{
            padding-top: 9px;
        }
        .eventUl{
            margin-top: 10px;
        }
        .ball{
            span{
                display: block;
                width: 8px;
                height: 8px;
                background: #00BC3A;
                border-radius: 50%;
            }
        }
    }
}

.dialogShow{
    animation: fadeIn .4s;
}
.dialogHide{
    animation: fadeOut .4s;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}